import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import TableDemo from '../views/TableDemo.vue'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'TableDemo',
    component: TableDemo,
    meta: {
      buttons: ['add', 'edit', 'delete', 'export', 'print', 'search', 'select', 'datePicker', 'virtual']
    }
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router 